import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-07-27  19:13
 */
public class Test {
    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        int z = 30;
        System.out.println(max2(x, y));
        System.out.println(max3(max2(x, y), z));
    }
    public static int max2(int x, int y) {
        if(x > y) {
            return x;
        }else {
            return y;
        }
    }

    public static int max3(int max2,int z) {
        if(max2 > z) {
            return max2;
        }else {
            return z;
        }
    }

}